package ch08;

import java.awt.Rectangle;

public class RectangleMeasurer implements IMeasurer{
	
	public double measure(Object o)
	{
		Rectangle rect = (Rectangle) o;
		double area = rect.getWidth() * rect.getHeight();
		return area;
	}
}
